package com.itheima.tlias84.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Data
@Configuration
//配置属性
@ConfigurationProperties("student")
public class StudentConfig {
    private String name;

    private Integer age;

    private String[] subject;

    private List<String> teachers;

    private Map<String,String> family;
}
